package com.bgds.sys.api.bean.mars.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author: warm
 * @Description:
 * @Date: 2020/7/28 10:19
 * @Version: 1.0
 */
@Data
public class TreeDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonProperty(value = "node_id")
    private String nodeId;
    @JsonProperty(value = "node_alarm")
    private Integer nodeAlarm;
    @JsonProperty(value = "node_name")
    private String nodeName;
    @JsonProperty(value = "node_seq")
    private Integer nodeSeq;
    @JsonProperty(value = "node_type")
    private Integer nodeType;
    @JsonProperty(value = "sampl_time")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date samplTime;
    @JsonProperty(value = "child_nodes")
    private List<TreeDto> childNodes;
}